package cn.jcet.module.stat.controller;

import cn.jcet.module.stat.domain.BaseEntity;
import cn.jcet.module.stat.service.StatService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("stat")
public class StatController {

    @Autowired
    private StatService statService;

    /**
     * 查询客户地区
     * @return
     */
    @GetMapping("loadCustomerAreaStatJosn")
    public List<BaseEntity> loadCustomerAreaStatList(){
        return statService.loadCustomerAreaStatList();
    }

    /**
     * 统计支付方式
     * @return
     */
    @GetMapping("loadPayTypeInportStatJson")
    public List<BaseEntity> loadPayTypeInportStatList(){
        return statService.loadPayTypeInportStatList();
    }

}
